<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="title" :close-on-click-modal="false" class="tl-dialog" width="1200px" @open="open" @close="close">
    <el-form class="tl-form" ref="form" :model="model" :rules="rules" label-width="150px" :disabled="disableEditSubmit">
			<el-row>
				<el-col :span="12">
					<el-form-item label="模块编码" prop="modulecode" >
						<el-input v-model="model.modulecode"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="模块名称" prop="modulename" >
						<el-input v-model="model.modulename"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="模块地址" prop="urladdress" >
						<el-input v-model="model.urladdress"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="操作人用户编号" prop="operateusercode"  :rules="rules.validateRequire">
						<tl-ref-user v-model="model.operateusercode" :initDisplayData.sync="model.dispoperateusercode" dataType="id" :singleSelect="true"></tl-ref-user>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="操作人用户姓名" prop="operateusername" >
						<el-input v-model="model.operateusername"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="统计日期" prop="statisticdate" >
						<el-date-picker v-model="model.statisticdate" type="date" placeholder="统计日期" value-format="yyyy-MM-dd"></el-date-picker>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="星期" prop="week" >
						<el-input v-model="model.week"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="是否工作日" prop="isworkday" >
						<el-input-number v-model="model.isworkday" controls-position="right" :step="1" :min="0" style="width:100%"></el-input-number>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="点击次数" prop="clickcount" >
						<el-input-number v-model="model.clickcount" controls-position="right" :step="1" :min="0" style="width:100%"></el-input-number>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="24">
					<el-form-item label="日志内容" prop="content" >
						<el-input v-model="model.content" type="textarea" :rows="4"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="extends1" prop="extends1" >
						<el-input v-model="model.extends1"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="extends2" prop="extends2" >
						<el-input v-model="model.extends2"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="extends3" prop="extends3" >
						<el-input v-model="model.extends3"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="extends4" prop="extends4" >
						<el-input v-model="model.extends4"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="extends5" prop="extends5" >
						<el-input v-model="model.extends5"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="extends6" prop="extends6" >
						<el-input v-model="model.extends6"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="extends7" prop="extends7" >
						<el-input v-model="model.extends7"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="extends8" prop="extends8" >
						<el-input v-model="model.extends8"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="extends9" prop="extends9" >
						<el-input v-model="model.extends9"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="extends10" prop="extends10" >
						<el-input v-model="model.extends10"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="排序码" prop="sortcode">
						<el-input-number v-model="model.sortcode" controls-position="right" :step="1" :min="0" style="width:100%"></el-input-number>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="有效" prop="enabled">
						<el-radio-group v-model="model.enabled">
							<el-radio :label="parseInt(item.code)" v-for="item in codeModel.enabledList" :key="item.code">{{ item.name }}</el-radio>
						</el-radio-group>
					</el-form-item>
				</el-col>
			</el-row>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button :type="disableEditSubmit === false ? 'text' : 'primary'" @click="doCancelEdit">取消</el-button>
      <el-button type="primary" @click="doSubmitEdit" :loading="saveLoading" v-if="disableEditSubmit === false">确认</el-button>
    </div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_edit } from '@tapui/mixins/mixin_edit'
/** 子组件 */
/** 工具类 */
import { putAction, getAction, postAction, deleteAction } from '@tapui/utils/http'
/** VUE配置 */
export default {
  mixins: [mixin_edit],
  components: { },
  data() {
    return {
      moduleTitle: '模块操作日志每日统计',
      urlPrefix: '/mis/moduleLogDailyStatistics/',
      url: {
        // 额外的url
      }
    }
  },
  methods: {
    loaded() {
      // 页面加载完毕执行
    }
  }
}
</script>

